<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>New Web Project</title>
	</head>
	<body>
		<h1>New Web Project Page</h1>
	</body>
	<script type="application/javascript">
		connect();
		function connect() {
			try {

				var socket;
				var host = "ws://localhost:7033/";
				var socket = new WebSocket(host);

				socket.onopen = function() {
					alert('<p class="event" id="openEvent">Socket Status: ' + socket.readyState + ' (open)');
				}

				socket.onmessage = function(msg) {
					alert('<p class="message">Received: ' + msg.data);
				}

				socket.onclose = function() {
					alert('<p class="event">Socket Closed: ' + socket.readyState + ' (Closed)');
				}
			} catch(exception) {
				alert('<p>Error' + exception);
			}
		}
	</script>
</html>
